package pers.corvey.crawler.model.json;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class MovieResultJson {

	private int start;
	private int count;
	private int total;
	private List<MovieJson> subjects;
	private String title;
	
	public MovieResultJson() {}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}
	
	public int getNextStart() {
		return start + count;
	}
	
	public boolean isDone() {
		return start + count >= total;
	}
	
	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<MovieJson> getSubjects() {
		return subjects;
	}

	public void setSubjects(List<MovieJson> subjects) {
		this.subjects = subjects;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
}
